package com.jsbs.iam.user.mapper;

import com.jsbs.iam.user.entity.IamApplyTypeBase;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface IamApplyTypeBaseMapper {
    int deleteByPrimaryKey(Long id);

    int insert(IamApplyTypeBase record);

    int insertSelective(IamApplyTypeBase record);

    IamApplyTypeBase selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(IamApplyTypeBase record);

    int updateByPrimaryKey(IamApplyTypeBase record);

    /**
     * 查询所有的应用类型名称
     * @return
     */
    List<String> getApplyTypeNameAll();

    /**
     * 根据应用名称查询应用编码
     * @param applyName
     * @return
     */
    String getApplyTypeCode (@Param("applyTypeName") String applyName);

    /**
     * 根据应用编码查询应用名称
     * @param applyTypeCode
     * @return
     */
    String getApplyTypeName (@Param("applyTypeCode") String applyTypeCode);

    /**
     * 根据应用类型查询前端链接url
     * @param applyTypeCode
     * @return
     */
    String queryApplyUrl (@Param("applyTypeCode")String applyTypeCode);

    /**
     * 根据前端链接url获取应用类型
     * @param applyUrl
     * @return
     */
    String queryApplyTypeCode (@Param("applyUrl")String applyUrl);
}